<!--title-->
<div class="mnav1">
	<div class="m_nav">
		<div class="nav_left">
			<em class="home_icon"><?=$this->sys_name?></em><span>&nbsp;&gt;&nbsp;</span><font><?=$this->title?></font>
		</div>
	</div>
</div>

<div class="content-table">
<div class="content-table-title"><?=$this->title?></div>
<br />

<form enctype="multipart/form-data" action="/maozhua/importexcel-mainbrand" method="post">
	<div>请先<a href="/reports/mainbrand-template-export">下载excel模板</a>编辑后上传文件</div>
	<div>
		<span>请选择你要上传的文件：<input type="file" name="myfile"></span>
        <input type="submit" value="上传文件" />
	</div>
	<div>
		注：上传的表格不能超过8M的大小且必须为后缀名为“.xls”或“（2007或以上版本的）.xlsx”结尾的Excel文件。
	</div>
</form>
<br />
<?php if($this->msg):?>
<div class="replace"><?=$this->msg?></div>
<br />
<?php endif;?>
<form action="/maozhua/importexcel-mainbrand-page" name="form1" method="GET">
关键字：<input type="text" name="keyword" <?php if($this->keyword){echo "value='".$this->keyword."'";}?> />
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="button" value="搜索" />
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" class="button-cancle" value="清空搜索条件" onclick="location.href='?';" />
&nbsp;&nbsp;&nbsp;&nbsp;
<!--<a href="/maozhua/export-users?provinceId=<?=$this->provinceId?>&cityId=<?=$this->cityId?>&status[]=<?=$this->status_str[0]?>&status[]=<?=$this->status_str[1]?>&keyword=<?=$this->keyword?>"><input type="button" class="button-cancle" value="导出Excel"/></a>-->

<font color="red"><b>当前搜索结果: 总条数 <?=$this->data['ct']?></b></font>
</form>
<br />
<table>
  <tr>
	<th>编号</th>
    <th>经销商名称</th>
    <th>经销商ID</th>
    <th>主要品牌</th>
    <th>操作</th>
  </tr>
  <?php foreach($this->data['current_page_info'] as $row):?>
  <tr>
	<td><?=$row["id"]?></td>
    <td><?=$row["dealer_name"]?></td>
    <td><?=$row["dealer_id"]?></td>
	<td><?=$row["primary_factory_name"]?></td>
	<td>
		<button onclick="window.location.href='/maozhua/edit-main-brand/id/<?=$row['id']?>'">编辑</button>
		<button onclick="window.location.href='/maozhua/insert-main-brand'">新增</button>
		<button onclick="window.location.href='/maozhua/del-main-brand/id/<?=$row['id']?>'">删除</button>
	</td>
  </tr>
  <?php endforeach;?>
</table>

<br /><br />
<div align="right"><?=$this->pagination?></div>
<br /><br /><br />